$().ready(function() {
					
                    $("#scheme-title-node-form").validate({
													  


// Title Validation
  rules: {
  
  'title': { 
							
							required: true,
							minlength: 5,
							maxlength: 255,
							chkbadchar:true,
							splchar:true,
						},
						},
				
		messages: {
				
				'title': { 
							required:  'Please enter Scheme Associate Name',
							minlength: 'Minimum 5 characters should be entered',
							maxlength: 'Maximum 255 character only allowed',
							chkbadchar:'insert, select, update, delete, drop, alter, change, modify not allowed.',
							splchar:'Special Characters are not allowed',
							},
							},
							
							//errorLabelContainer: "#errormsg_container",
					 //focusInvalid: false,
   					invalidHandler: function(form, validator) {
       
       					 if (!validator.numberOfInvalids())
								return;
						else{
							
							  //$("#service-title-node-form").create_errormsg_container('errormsg_container','service-title-node-form');
						}
							
							$('html, body').animate({
								scrollTop: $(validator.errorList[0].element).offset().top - 100
							}, 1000);
							
						},
				

   
	});




            
});